<form name="vm.verForm" ng-submit="vm.verForm.$valid && vm.save()" novalidate>
    <div class="modal-header clearfix">
        <h4>{{vm.version.imageName}}  {{vm.version.version}}</h4>
    </div>
    <div class="modal-body clearfix">

        <div class="form-group" ng-class="{'has-error': (vm.verForm.servicePort.$touched || vm.verForm.$submitted ) && (vm.verForm.servicePort.$error.required )}">
            <label for="servicePort">端口: </label>
            <input type="text" ng-model="vm.version.servicePort" class="form-control" id="inputPassword1" placeholder="端口" name="servicePort" required>

            <div class="text-danger" ng-show="(vm.verForm.servicePort.$touched || vm.verForm.$submitted ) && (vm.verForm.servicePort.$error.required )">
                请输入端口
            </div>
        </div>

    </div>
    <div class="modal-footer">
        <button class="btn btn-primary btn-sm" type="submit">确定</button>
        <button class="btn btn-default btn-sm" type="button" ng-click="vm.cancel()">取消</button>
    </div>
</form>